Contents | Index | < Browse | Browse >
LETTERlocaltimeULETTER
Unpacks the local time.
Overview
#include <time.h>
t = localtime(tp);
struct tm *t;
const time_t *tp;
Portability
ANSI
Description
This function converts a time specification from its long integer (time_t)
form, which represents the number of seconds since 00:00:00 January 1, 1970
and is returned by eg. time, into a tm structure.
In opposite to gmtime this routine automatically adjusts the
time_t value passed for the local time zone.
Note that the tm structure returned is shared among other time functions and should
thus be used immediately after calling gmtime.
Returns
A pointer to a completed "tm" structure.
See also
gmtime